Parts C and D of the assignment