Writing the doc