finish implementing management of examples (issue #2)