Adding the header and footer writer methods