a').append(main);

  var search = document.createElement('div')
  search.setAttribute('id', 'search');
  search.setAttribute('class', 'hide');
  search.innerHTML = SEARCH_TEMPLATE;
  $('#area').append(search);
}

var genProblem = function() {
  // email inbox
  setupInbox();
  var emails = generateEmails();
  displayEmailSummaries(emails);
  var shuffled = emails.slice();
  core.shuffle(shuffled);
  var expectedDetails = {};
  expectedDetails.action = core.sample(EMAIL_ACTIONS);
  expectedDetails.email = sh