Updated the instructor code of Indexers.