How rail freight works