Added copy constructor and destructor