Edited remove and the destructor.