Made query() member public