creating own grep method that uses yield/generators