Finish Exercise 40