Abstraction for csv files