Tested Code
https://pareview.sh/node/2957
Working as expected, functions defi...