Add method to save a csv file