Add examples for text() function.