solved problem 106