Finished Exercise 31