Fixed error in travelDistance of TrainInfo class