Added 1 line to sample3.cpp