@JiveDadson: Yep. I originally skipped parameter checking to keep the example as simple as possible. Anyway, someone else modified the answer, and I adjusted it a bit, so that's addressed.
–
RonaldBarzellDec 22 '12 at 0:04