added custom linked list class