update Memento cpp file