chapter 6: exercises 5