update calc-engine class