Finished Exercise 4.