Added listIterator method to provide a way to iterate over contents.