Close by no cigar

output works now I need to use the file input output.