Completed Chapter 10 Exercise 6