The subphylum Hexapoda includes insects and other land arthropods with three pairs of legs and typically two pairs of wings. Hexapoda have three main body sections - the head, thorax, and abdomen. The thorax is divided into three segments, each bearing a pair of legs. More advanced insects like flies use indirect flight muscles that connect the thorax to the wings, allowing up-and-down wing movement through contractions of muscles on the thorax. Requirements for flight include thermoregulation abilities and muscles that can contract rapidly to provide lift, with wing movement powered directly by muscles in some insects like dragonflies.