HW2_Prob_3 added, part 4 to be continued