Changed the interface of getClasses