Refactoring with Linked Lists