added editor pattern example