finished subproblem a and b. adds description of subproblem c