Did all but part c of the writeup