Name change of sample.cpp to demo.cpp to be consistent with 3D version of DSC.