Added pa2 solution.