added class Rules in models