Multi-agent exchange in Mathematica