fix some typos in chapter 3 (thanks to huangjianfu)