ex3.py

Updated