Added print_list method.