modified:   ex22.py