exercises with groupby