write a simple prog in expect