added chap 8, 9 examples.