write create new sentence api method