writing prices to csv file