Some code in PL/SQL that I'd like to share for the ease of further development