p5 solution 4 added