building prim
first working version of prim