new methods are defined to print header, names, footer