solved problem 54