not a big deal, but you usually see this written as .group_by(&:user_id)