Class to test the linked list