Create & implemenet Query object