add chap04 examples