Locomotives with magne-matic couplers