Solution of problem 11