add owrite.cpp