starts chapter 2's code summary