implemented Group as an object to enable managing a group more easily