Creating CodeBook