Leaves come in different shapes and arrangements but all perform the basic function of producing food for plants. There are four basic leaf shapes - broad and flat, long and narrow, needlelike, and scaly. Leaves can be arranged opposite, alternate, whorled, or in a basal rosette. Leaf margins can be entire, toothed, wavy or lobed. Leaves are either simple, with one blade, or compound, with multiple blades joined to a petiole. Compound leaves can be palmately or pinnately arranged.