there was an error on the last homework problem (number 7), which I have now modified and split into 2 parts.