some examples can not run only in irb, work out them