Problem 7 done except for error testing