solved problem 71