updated problem 11

fixed the extra loops, still not right though.