New parameterized Class for linked list