solved problem 1 to 11