wrote up parts a-c of problem 1 in comp hw