Structure in threes: modelling organization-oriented software architectures built upon multi-agent systems