Created an interface IIndexer.