prefer define_method over class_eval.