Finished P1-Alg