re-enabling the destructor to enable deletion of dynamically allocated memory.