String Calculator: Refactoring - variables extracted as field