Update write_csv.rb