Updated simple linked list generator