playing with Document object