template and input file to prog 6