complete working-example demo