solved problem 9
working on problem 11