Finished HW7 with extra credit.