<ruby> add refactor chap10 make method calls simpler