added Prim class