ProblemSet7_solutions_Spring2022 (5).R