Final Ruby revision exercise.