Creating Iindex

First commit for encoder