implemented createGroup