#include <iostream>
#include <memory>
using namespace std;
class Logger {
public:
void log() { cout << "Logging data\n"; }
};
int main() {
// your code here: declare a shared_ptr<Logger> and another shared_ptr that shares the same object
std::shared_ptr<Logger> ptr1 = std::make_shared<Logger>();
std::shared_ptr<Logger> ptr2 = ptr1;
// call log() using both shared pointers
ptr1->log();
ptr2->log();
return 0;
}