Groups naive implementation