added ex9 base
ex9: solution