Generalization of the sestina