Added model and various methods for groups