working basic calc and tests