second version of appgen pricing engine