Modifying the Program for Strategies: Exercise 6.13, pp. 156-7