added equals signature to MyPredicate interface