Fixed demo1 snippet