Stacking with grouping example