public void Commit() { //if we were working with a database, this is where the transaction would be created and all changes persisted. committedData = serializer.Serialize(Repository); }