Sovled problem 11
Solved problem 12