How to create a grouping and add groups to a grouping