Change format of code book