Added implementation of getClassesByName()