Iterate through all classes.