predicate and set of beans example