chapter2.py