Factored out demo pattern