linked list can be initialized with a list of values