calculator - separatation with functions (also getters for gui calculation)