Added a struct for the linked list with the appropriate variables