Update demo.cpp