update Reverse Polish Notation class