Codebook

First version of codebook