why it was each_with_object?