added print_list method to exercise 6