classifying stack of a group