ngcgui example with lathe subroutines