modified main.cpp in Macros project.