Please return a const & to the shared_ptr. This avoids a copy when one is not needed.