Update main.cpp

splitting the work into areas but still blocking