process.on('message', function(message, parent) {
  var meal = {};
  switch (message.cmd){
    case 'makeBreakfast':
      meal = ["szynka", "jajka", "tost"];
      break;
    case 'makeLunch':
      meal = ["burger", "frytki", "szejk"];
      break;
    case 'makeDinner':
      meal = ["zupa", "sałata", "stek"];
      break;
  }
  process.send(meal);
});