simple app from Ruby coursebook