Zen of Ruby Exercises 6-10