Query class  edited.