Creating the code book