   firstName: "Heidi",
      lastName: "MÃ¼ller"
    }]
    prefix = '';
    selectedName = null;
    firstName = '';
    lastName = '';
    filteredNames = [];
    validationError = '';
    fadeOutClass = '';

    validateName() {
      if (!this.firstName || !this.lastName) {
        this.validationError = 'Both first name and last name must be provided.';
        return false;
      }
      this.validationError = '';
      return true;
    }

    addName() {
      if (!this.validateName()) {
        re