add chapter 3.1 and modify build script