Implemented grouping by day