completed run_demo script