hw 7 completed with extra credit: