Creating groups script