chapter 7 code