code for LinkList