Update and rename add.cpp to addAfter.cpp