solved problem 107