duglas.cpp