Simple Grep class implementation, with tests