Complete Exercise 31.