Finish Exercise 3.1