added chap 10 examples.