adds function for getting groups
Started implementing simulation for groups