Added example for grouping duplicate values