Codebook

This is not complete yet.