Writting values in a CSV file