Adding code book