Intialized the indexer class in the commandbased program and created the atuonomousCommand