move examples into package dir

(and make them importable for testing)
helper ot return an instance of the given dotted name