An evacuation model using cellular automata