CSV reader implemented in the main.