Codebook: updated version