Add function cogroup().

I think we can delete these lines safely