Updated groupings program