Completed Exercise 4.