https://happydevops.com/2022/03/07/kata-functions-scala/