simplify the ring example

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>