add document.cpp
document passed test