Completed Exercise 7.