Added a way to preview the index (toString() method implemented).