Added nwd.cpp