create prime cost object constuctor with formulas