Finish Exercise 9.7