c and d of problem 3 are done