note: coded entirely using Linux command line editor nano :-)