chapter 8: exercise 4 and 5
chapter 8: exercise 7