Code for Ruby exercises, lesson 1, number 10.