p5 solution 3 added