simplify to_s. change each_with_object to map.