The thorax is composed of three segments - the prothorax, mesothorax, and metathorax. The mesothorax and metathorax are enlarged and bear wings and associated musculature. Wings occur on the mesothorax and metathorax. The thorax contains nota (dorsal plates), sterna (ventral plates), and pleura (lateral plates) that form a box-like structure and play an important role in locomotion. Legs occur on each thoracic segment and have six segments - coxa, trochanter, femur, tibia, tarsus, and pretarsus. Leg segments can be modified for different functions like