Implement save to csv file