implementing coffeescript