modified main.cpp and removed unnecessary print