Chapter 5, exercises 1 to 7