minor fixes to chapter 2