how to build machine with gear