added linklist code