add sample code to directly return text content