Ch9 exercise 9.6.1 - 9.6.7