Editing chapter 5 to make equations work