sample application from ruby.rubytutorials