Eric Berna Thanks for this. I had some fun implementing it in Swift.

Eric Berna
iOS Developer