writing some ListNode* methods