Finish Exercise 3.6