Updating the code book