motion of mechanical gears