generic single-linked list
testing the single-linked list