Use each_with_object