completed problem 8, 9.  need to comment .py files