tName = '';
        this.lastName = '';
      }
    }

    deleteName() {
      const index = this.names.findIndex(name => name === this.selectedName);
      if (index !== -1) {
        this.names.splice(index, 1);
        this.selectedName = null;
      }
    }

    get filterNames() {
      return this.names.filter(name => name.firstName.startsWith(this.prefix) || name.lastName.startsWith(this.prefix));
    }

    template() {
      return html`
        <div class="container">
          <div class="input-