Problem #7 done