added equals and hashcode methods for all the MyPredicate classes