Completed define_method