Fixed Codebook Runnable Code