• You may be right. I will try it. But the article was not written to show the best code, but to show the idea of how to use user defined function for the case.