MyQuery.java and Term.java by Jaeyoon