creating export to csv class