completed exercises in Chapter 8