Exchange coding method