ex12 done with extra credit