Multiagent-based Intelligent Environments