Completed exercise 1 of chapter 4.