Working on an ES6 model/controller