Example of using function within a pl/sql script