enumerate in class_writer