Prim_plan2