Completed Chapter 3 Exercise 1