Finish Exercise 1.18