Chap 6 exercise 3