added Calc class with log function