adding ex2.py