add toHtml, toText and p() methods on Model