text: // business logic
  function Contact(first, last) {
      this.firstName = first;
      this.lastName = last;
    }
    
    // user interface logic
    $(document).ready(function() {
      $("form#new-contact").submit(function(event) {
        event.preventDefault();
    
        var inputtedFirstName = $("input#new-first-name").val();
        var inputtedLastName = $("input#new-last-name").val();
    
        var newContact = new Contact(inputtedFirstName, inputtedLastName);
    
        $("ul#contacts").append("<li><span class='contact'>" + newContact.firstName+" " + "</span><span class='contact'>" + newContact.lastName + "</span></li>");
    
        $("input#new-first-name").val("");
        $("input#new-last-name").val("");
      });
    }); 