A distributed simulation using mobile agents