initial commit of demo.cpp