Quiz writes data to csv file