adding code to read in data from files on sample inputs and randomly generated inputs