text: module.exports = {
    enter : function() {
      "use strict";
  
      var
        trainee = $('body').data('trainee'),
        wantedText = 'Hi ' + trainee + ', I am Bob! How are you?',
        NOT_WORKING = 'The code is not working :/',
        PARTIALLY_WORKING = 'The code is working, but is not producing the desired text: "' + wantedText + '"<br />Instead it produces this text: "{text}"',
        WORKING = 'Yay, the code is working! Thanks, ' + trainee + ' :)<br />Enter <code>next();</code> into the command line to proceed...',
        $statusEl = $('#status').html(NOT_WORKING).addClass('status--error');
  
      $('#task').keyup(function() {
        try {
          var producedText = eval('(function() { ' + $(this).text() + '; return greeting; })();');
          $statusEl
            .html(producedText === wantedText ? WORKING : PARTIALLY_WORKING.replace('{text}', producedText))
            .removeClass('status--error status--warning status--success')
            .addClass(producedText === wantedText ? 'status--success' : 'status--warning');
        } catch(e) {
          $statusEl.html(NOT_WORKING).removeClass('status--warning status--success').addClass('status--error');
        }
      });
    }
  };