chapter 6: exercises up to 6.9