exercise 1 with extra credit done