codebook class init