Codebook

step by step walk through the code.