implement here document

implement Here document and corresponding test