added model.coffee