ruby-lang ch4-5