Code book and output file