Solution for problem 55.