Addition of print_list function