Rewrite CodeBook