Multiagent System with Automatic Message Routing