Implemented Collection.by_example