Update rules.coffee