A system for agent-based modelling in political psychology