added ex9 and ex10