swapped from arraylist to lists. Added methods to read from file and from console