chapter 3 in ruby tutorial