gear rack and sprocket generator