Added header and footer code