implemented query() method
ç