added printing example
text example working properly