Demonstrate how to use a std::shared_ptr.