added basic find_by_grammar algorithm (not working at the moment)