finished problem 2.1.  need to further look into exception handling in this manner.