First version of codebook