The period saw major technological advances, including the adoption of gunpowder, the invention<span> of vertical windmills, spectacles, mechanical clocks, and greatly improved water mills, building techniques (Gothic architecture, </span>medieval<span> castles), and agriculture in general (three-field crop rotation).</span>