Refactored linked list