finish degree query engine; add classes for other query engine