In Modern day winmills all of the gears are not visible and the mechanisim is a bit different
The one you see in this photograph is one that was not as technological as nowadays we have wind turbines and they are used for our power.
This answer is to not be used for your assignment but to give you a brief explanation about the windmill you see!