Define Index and type