Working program, printing result to csv-file