Rewriting calculator logic