update calculator.y demo