adding ex18.py