Added copy constructor for attr