finish the exercises for chap03