storing all the features in a csv file