Generating directories of classes