write about generating functions for operations and primitive species