Slight mod to homework