Indexer class with spec