Pack derivation methods into another class. Add optimization method to FreightNetwork class.