AutoReset and ClassWithId demo code.