Chapter 10 exercise 7