chapter 11 example 8 and 9