Add create assignment example to documentation index