added ex2.py, ex4-py