creation of CodeBook