now accepting multiple classes for querying.