A General Purpose Programming Model & Technology for Developing Working Environments in MAS