Fixed typo: originial -> original.
Fixed editor: added missing constness flag to editor.
Implemented more complex use case in example.