implement csv parsing to data model