Completed Exercise 9.