csv-plot: implementing reader class