Flesh out the functionality of the csv_writer class