finished part c writeup