print_list_data for cleaner code.