Update hw12 problem 4

added part c