Completed Exercise 8-4