adding ex5.py