Could use `each_with_object`