P-algebra