Create sample_array.cpp