Got rid of the dependency on an ArrayList for parsing the file