ex3 with extra credit completed