now adding code to the document