Nice game of golf but there are UDFs already that will do all of this.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.