added query class