recommented main.cpp