created ex2.py