removed redundant cin.get() from main.cpp