Chapter 3 ruby tutorial