Solution for problem 61.