All code snippets, small program from FAMILUG.org