App from chapter 2 rubytutorial