Solution to p5