Developing Agent-Based Models to Study Financial Markets