Added ex4.py