solved problem 10, but its really slow should be looked at again