start chapter 6 code