add print_list method