added drawParagraph method