Establish groups in a pyramidal way