multi agent system ( scala)