adds queries object and impl extraction method based on example file