use unique_ptr in Class