Stack based calculator written in Ruby