add new factory for encapsulation of text.