Added methods for linked list class