Ruby solution for tutorial-intro