Add chap6.py and chap7.py