Formatting code book