added examples with lambdas, blocks, define_method, and
define_singleton_method