made fixes to chapter 2