A class of crustaceans that are typical Arthropoda but laterally compressed and enclosed within a bivalved carapace. This pair of calcareous valves is an integral part of the epidermis and is closed by a series of muscles that leave scars (see muscle scar) on the valve interiors. The appendages are typically biramous but may be modified for digging, swimming, etc. The group includes herbivores, carnivores, and scavengers, and occurs in most aquatic habitats. Most are small (less than 1 mm long) and about 70 000 species have been described, occurring from the Cambrian to the present day. The biological classification of Recent forms is based on the soft-part anatomy and fossil forms are classified by the nature of the preserved carapaces. Such characters as the nature of the hinge, the pattern of the muscle scars, as well as overall shape and ornamentation are all used in species determination. Ostracods have considerable stratigraphic use, and are also used to demonstrate variations in salinity and fluctuations in the positions of shorelines.