formatting code book