Modify displayList() in ItemList class

Display the list with index.