https://devhubby.com/thread/how-to-call-or-write-an-oracle-function