src/ch2/ex2: modify func name.
src/ch2/ex3: add.
src/ch2/ex4: add.
src/ch2/ex5: add.
src/ch2/ex6: add.
src/ch2/ex7: add.