Completed Exercise 2.