made a new p class with p.end