chapter 12 code