Update the example to work with the new API.
Update the example to work with the new API.

pranavrc/example-gluon,cgaebel/gluon,pranavrc/example-gluon,cgaebel/gluon,KDE/gluon,KDE/gluon,pranavrc/example-gluon,pranavrc/example-gluon,cgaebel/gluon,KDE/gluon,cgaebel/gluon,KDE/gluon