Update main.cpp

Some changes