solve 9
ex10 solved