Write document for sample