Initializing variables for linked list implementation