Created ListNode class.