The first buildings were huts and shelters, constructed by hand or with simple tools. As cities grew during the Bronze Age, a class of professional craftsmen appeared. Occasionally, slaves were used for construction work. In the Middle Ages, these were organized into guilds. In the 19th century, steam-powered machinery appeared, and later diesel- and electric powered vehicles such as cranes, excavators and bulldozers.