finished exercises for chap 3