ProblemSet2_solutions_Spring2022 (5).R