Made destructor virtual