Refactor structure for examples and extensions

Is this change supposed to be in here?