Creating the CodeBook