Add grouping
Make group attribute take a refference
Merge pull request #1 from pvg-alex/add_grouping

Add grouping