added part 2 solution
a1 p3