solved phase_2, included solution in soln.txt and explanation in write-up