Move the example code to a separate module