Added "text" function for textblock class