Adding table with grouping