Completed Exercise 4-5 (up to and including).