try define_method