add chapter 1 code 1.1