Shipping Calculator in Ruby