Make all examples Example subclasses.

This requires allowing subclasses to change the simulator,
which must then be reattached to button listeners.