Leaves have several key parts that allow them to efficiently perform photosynthesis. The blade is the main structure that collects sunlight, while the petiole attaches the blade to the stem. Within the blade are a midrib and veins that transport water and nutrients. The edge of the leaf is called the margin. A simple leaf has one continuous blade, while a compound leaf's blade is divided into sections. The four main types of venation patterns are parallel, pinnately netted, palmately netted, and dichotomous. Gas exchange occurs through stomata on the lower epidermis, which are controlled by guard cells.