Improved CoffeeScript structure