P5 solution2 added