implements a simple function of the output in CSV format.