added code from noraml rpn-calculator