modified:   exercises/chap2/q0008.py