Code book formatting