Did exercise 1 of chapter 5