demo1 works
demo2 works
updated example