added ES6 example