How do I use the exchange function?