Start of the linked list code.