Did exercises 1, 2, and 4 of chapter 5