finish chapter 13 and chapter 14 with fix some bugs