The following program is written in RoboLab 2.5. This version is far more powerful and better supported than version 2, used elsewhere on my site.