implemented group_by, though without doing static checks as of now.