solved problem 45