chapter 10 code added