Refactored add_class_method -> add_instance_method.