Finished Chapter 2 Problem 6