add writen.cpp