Use send to call define_method
Use @name instead of name