Add codes in the body of chap1.