turn;
      }
      this.names.push({ firstName: this.firstName, lastName: this.lastName });
      this.firstName = '';
      this.lastName = '';
    }

    updateName() {
      if (!this.validateName()) {
        return;
      }
      const index = this.names.findIndex(name => name.firstName === this.selectedName.firstName && name.lastName === this.selectedName.lastName);
      if (index !== -1) {
        this.names.splice(index, 1, { firstName: this.firstName, lastName: this.lastName });
        this.firs