Towards a MAS-Based Model for Ambient Intelligence