Text this: Study of structure stability in a mathematical model of four interacting groups