sample.cpp added