ex10 complete and tested