ex31.py added