Adds code book