Ch.06 Prog.exercises 1-3