implemented getClasses