printList coded