Solution to the CSV challenge