chapter 3: exercise 16