added functionality to create a group