chapter 6: exercises 6