Added print_line and print_header functions to the Output class.