Completed Exercise 3.