Full answer to homework1 of 98-222