updating sample gamlet to include sendtosession technique