ex18.py added