Add 9.1 and 9.2 to chap9.py