More practices and added improvements to rpn program in Ruby