Add new ex1.py file for exercise 1.