THE AGENT BASED MODELAPPLIED TO CRIME