Fixup main.cpp
Finalized sample4