ex5 completed with extra credit