Multi-agent based modelling of an endogenous-money economy