Finalized SharedPtr class