added reverseMain.cpp