Fixed exercise in Chapter 9