added rules to company model