update chapter 11 code