Basic implementation of coded indexes