Complete Exercise 40.