reenabling the destructor to enable deletion of dynamically allocated memorey.