code by jd amato and featuring a special math appearance by dale hoff.