Refactored Linked List Class