Simulating wealth distribution in an agent-based system