add comment for grep() to explain its usage and semantic