able to read the input file and get the data into correct vectors