Modelling Emergence of Money