Completed exercise 1 of chapter 5.