Use query Class