Adding logic and tests to parse the CSV