Coupling Locomotives in the Martin Yard