Say I have a class like this for calculating the cost of travelling different distances with different modes of transportation:
public class TransportationCostCa