skeleton for query class