added print_footer method