Refactoring List to take the initial contents in its constructor