here is the original solution https://cockrum.net/cnc.html