Added the index number when a name is printed