simple GUI programs from cs 151 ch 4