Integer calculator implementation