final chapter 2 code