1This code was written by Herbert Melenk.