added rules.coffee