completed linked list for hw12