Added getHeader and getFooter methods