homework 7 done, painfully, but done