example of using textlib