Update main.cpp

This is the end of this tutorial code.