adding the linked list and it's functions