implementing RPNCalculator