Update code book