Updated examples to conform to the evented API