Completed exercise 9 of chapter 5.