New class to handle definition queries