Create method getGroups() that returns the student groups as array