finished problem 10

problem 10 wasn't too bad. also started problem 11 which is giving me trouble.