Read and write CSV files in an object oriented way