Added Problem 10 and 9
refactoring
added Problem 11