ex19.py and ex20.py