Solved problem 24, working on 107