add chap3 with two examples