implement linked list in module