writing CSV data ex 1 complete