Update addAfter.cpp