SMS: Multiagent based supply chain management