LacCalc functions to own class