return statement should terminate execution of a method defined by define_method