Made the coffeescript class-based