Using boost::shared_ptr<> instead of raw pointer in main.