Completed Chapter 3 Exercise 2