Flatworms are acoelomates with gastrovascular cavities. There are about 20,000 species of flatworms living in marine, freshwater, and damp terrestrial habitats. They also include parasitic species, such as the flukes and tapeworms. Flatworms have thin bodies, ranging in size from nearly microscopic to tapeworms over 20 m long. Flatworms are triploblastic, with a middle embryonic tissue layer, mesoderm, which contributes to more complex organs and organ systems and to true muscle tissue.