1. Equals and hashcode methods were overrided in class Rule
2. In Classes Mark and Realm checking field comment was dropped.