ex9.py added