Add initial work on codebook