adds minor changes to ex9 and ex10