fixed typos in chapter 4