a type of machine with flaps connected to a shaft that turns gears