Add shared_ptr to Space.