p5 the naive way