Longitudinal Dynamics Of Freight Trains