committing pa2 solution