Completion of code book