Adding the create group function