Added ex31.py