Added ex4.py and ex5.py