finished ProblemSet6