factorized title
in chapter 4. Ruby