created ex3.py