adding codebook, data, and sample output