Finished part of ProblemSet9