Changes up to chapter 11

I meant to include a commit every chapter, though I forgot. Now I will
commit after every chapter.