adding group by concept