Agent based modelling in economics and complexity