implemented ad linkedlist

but somehow not working