Developing G-Code generation