now using let and const - note that node now needs to be run with the --harmony flag