added each method to linkedlist