Create sample2.cpp