filter classes by term in getClass()