Completed Exercise 5.