Finished Exercise 2.