Change examples API format for upcoming API changes

Instead of exporting the `createClass`ed object, export the return from `createClass`. This will make a difference in the future when the obj and the `createClass`ed object are different.