Additional constructor for Text class.