done ex9.py, adding ex10.py