finished linkedlist excercise