Daily Programmer challenge #16
In which I use a function of my own design.