made Text constructor accept lists