solutions for problem 11