Added code to obtain data from csv files