imports.searchPath.unshift('.');
const Lang = imports.lang;

const Values = imports.values;

function main (argv) {
  var v = new Values.Values ({tellers: ["hello", "world"], domain: "Sweden"});
  
  v.listen ("hello", function () {
    print ("Hello");
  });
  v.listen ("hello", function () {
    print ("Hello again!");
  });
  
  v.listen ("world", function () {
    print ("world");
  });
  v.listen ("world", function () {
    print ("World again!");
  });
  
  v.tell ("hello");
  v.tell ("world");
  
  print ();
}

main (ARGV);
