fixed typo
solved problem 9 . . .  but not too happy with it.