Problem 3 -- Chapter 5 completed