Parcel calculator in Ruby.