added finished ex13.py from previous round of study