Acept object on groupBy method