create class DataPrinter to print csv file