used Reverse Polish Notation for calculator