Create restack.cpp