how to program a cnc lathe machine