ex8 complete and tested