Added copy constructor and operator for Resource and Block