Added Deconstructor function for list