text: 'use strict';
  
  const events = require('./events.js');
  
  events.on('pickup', (payload) => logIt('pickup', payload));
  events.on('in-transit', (payload) => logIt('in-transit', payload));
  events.on('delivered', (payload) => logIt('delivered', payload));
  
  function logIt(event, payload) {
    console.log('EVENT', { event, time: new Date().toLocaleString(), payload });
  }