initial source code for Grep example