I learned Ruby and wrote this script as part of a job application . . . (Didn't get the job.)