made Text constructor accept list