ex4.py added