A short exercise in beginning Ruby coding