implemented save and load to CSV file