ex9.py & ex10.py

Completed ex9.py and added ex10.py